package com.matt.repository.course;

import com.matt.domain.course.PrepareCourse;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;

import java.util.List;

/**
 * *******************************
 * Created by Ron.
 * form com.matt
 * on 2018/11/26
 * *******************************
 */
public interface PrepareCourseRepository extends JpaRepository<PrepareCourse, String>{
    PrepareCourse findByCoursePlanClassesId(String coursePlanClassesId);

    @Modifying
    void deleteByCoursePlanClassesId(String coursePlanClassesId);

    @Modifying
    Long deleteByCoursePlanClassesIdIn(List<String> coursePlanClassesIds);
}
